<?php
	session_start();
	include('conn.php');
		
	$custname = $_REQUEST["custname"];	
	$addrline1 = $_REQUEST["addrline1"];	
	$addrline2 = $_REQUEST["addrline2"];
	$addrline3 = $_REQUEST["addrline3"];
	$city = $_REQUEST["city"];
	$state = $_REQUEST["state"];
	$country = $_REQUEST["country"];
	$phone1 = $_REQUEST["phone1"];
	$phone2 = $_REQUEST["phone2"];
	$mobile1 = $_REQUEST["mobile1"];
	$mobile2 = $_REQUEST["mobile2"];
	$img = $_REQUEST["logo"];
	$emailgen = $_REQUEST["emailgen"];	
	$compemails = $_REQUEST["compemails"];
	$bank = $_REQUEST["bank"];
	$ifsc = $_REQUEST["ifsc"];
	$accountno = $_REQUEST["accountno"];	
	//$img = $_REQUEST["logo"];
	$logo = $_REQUEST["logo"];
	$entries = $_REQUEST["entries"];
	
	/*if(strcasecmp($img,'null')!=0)
	{
		$logo= addslashes(file_get_contents($img));
		$query = "update  clientdetails set logo = '$logo';";  
		$qry = mysql_query($query);
		echo "=".$query;
	}*/
		
	$sql = "update clientdetails set custname='".$custname."',addrline1='".$addrline1."', addrline2='".$addrline2."', addrline3='".$addrline3."', city='".$city."', state='".$state."', country='".$country."', phone1='".$phone1."', phone2='".$phone2."', mobile1='".$mobile1."', mobile2='".$mobile2."', emailgen='".$emailgen."', compemails='".$compemails."',bank='".$bank."',ifsc='".$ifsc."',accountno='".$accountno."',logo = '$logo',entries = '$entries';";
	
	$result = mysql_query($sql);
	
	echo "<br/>".$sql."<br/>".$result;
	
	?>